package cn.iocoder.yudao.module.exam.controller.admin.uploadbatch.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 终端管理 Response VO")
@Data
@ExcelIgnoreUnannotated
public class UploadBatchRespVO {

    @Schema(description = "批次ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "24045")
    @ExcelProperty("批次ID")
    private Long id;

    @Schema(description = "批次编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("批次编号")
    private String batchCode;

    @Schema(description = "考试ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "18024")
    @ExcelProperty("考试ID")
    private Long examId;

    @Schema(description = "考试名称", example = "李四")
    @ExcelProperty("考试名称")
    private String examName;

    @Schema(description = "学科")
    @ExcelProperty(value = "学科", converter = DictConvert.class)
    @DictFormat("exam_subject") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String subject;

    @Schema(description = "年级")
    @ExcelProperty(value = "年级", converter = DictConvert.class)
    @DictFormat("exam_grade") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String grade;

    @Schema(description = "试卷总数", requiredMode = Schema.RequiredMode.REQUIRED, example = "18376")
    @ExcelProperty("试卷总数")
    private Integer totalCount;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("状态")
    private Integer uploadStatus;

}